package kernel;

import java.util.Vector;

public class Noeud {
    /**
     * @attribute
     */
    int x;

    /**
     * @attribute
     */
    int y;

    /**
     * @attribute
     */
    Vector <Arc> listArcDep = new Vector<Arc>();

    /**
     * @attribute
     */
    int id;

    /**
     * @attribute
     */
    Vector<Arc> listArcArr = new Vector<Arc>();

    /*
     * Contructeur de la classe Noeud
     */
    public Noeud(int x, int y, int id) {
        super();
        this.x = x;
        this.y = y;
        this.id = id;
    }
	
    /*
     * Getters & Setters
     */
    public void setX(int x) {
        this.x = x;
    }

    public int getX() {
        return x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getY() {
        return y;
    }

    public void setListArcDep(Vector<Arc> listArcDep) {
        this.listArcDep = listArcDep;
    }

    public Vector getListArcDep() {
        return listArcDep;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setListArcArr(Vector<Arc> listArcArr) {
        this.listArcArr = listArcArr;
    }

    public Vector getListArcArr() {
        return listArcArr;
    }
    
    public void AjouterArcDep(Arc arc) {
        listArcDep.add(arc);
    }
    
    public void RetirerArcDep(Arc arc) {
        listArcDep.remove(arc);
    }
    
    public void AjouterArcArr(Arc arc) {
        listArcArr.add(arc);
    }
    
    public void RetirerArcArr(Arc arc) {
        listArcArr.remove(arc);
    }
}
